#ifndef GAMEANIMATIONCOLLECTION_H
#define GAMEANIMATIONCOLLECTION_H

#include <QObject>
#include <QPointF>
#include <QAnimationGroup>
#include <QParallelAnimationGroup>
#include <QSequentialAnimationGroup>
#include <QPropertyAnimation>



class GameSeqAnimation : public QSequentialAnimationGroup
{
public:
    GameSeqAnimation(QObject* parent);
    void addMove(QObject* target, QPointF moveS, QPointF moveE, int duration);
    void addFade(QObject* target, qreal fadeS, qreal fadeE, int duration);
protected:
};

class GameParAnimation:public QParallelAnimationGroup
{
public:
    GameParAnimation(QObject* parent);
    void addMove(QObject* target, QPointF moveS, QPointF moveE, int duration);
    void addFade(QObject* target, qreal fadeS, qreal fadeE, int duration);
    void addScale(QObject* target, qreal scaleS, qreal scaleE, int duration);
};

#endif // GAMEANIMATIONCOLLECTION_H
